
from timeit import timeit

# list1.insert(0,'a')
t = timeit('[x for x in range(1000)].insert(0,1000)', number=10000)  # 0.5360860000716782 0.5316030466607391 0.5360849760987657
print(t)
t = timeit('[x for x in range(1000)].insert(1000,1000)', number=10000) # 0.5260944137157759 0.5361528996352949 0.532
print(t)
# t = timeit('[x for x in range(1000)]', number=10000)  # 0.5188156729293988 0.5262323087346596 0.5176039716496034 0.5156263386312555
# print(t)


if __name__ == '__main__':
    pass

